package com.ticket.sass.common.printer.dto;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * @author ywb
 * @date 2024-06-09 17:12
 */

public class PrintResult implements Serializable {
    
    private String error;
    @SerializedName("error_description")
    private String errorDescription;
    private Body body;
    
    public PrintResult(String error, String errorDescription, Body body) {
        this.error = error;
        this.errorDescription = errorDescription;
        this.body = body;
    }
    
    public String getError() {
        return error;
    }
    
    public void setError(String error) {
        this.error = error;
    }
    
    public String getErrorDescription() {
        return errorDescription;
    }
    
    public void setErrorDescription(String errorDescription) {
        this.errorDescription = errorDescription;
    }
    
    public Body getBody() {
        return body;
    }
    
    public void setBody(Body body) {
        this.body = body;
    }
    
    public static class Body implements Serializable {
        
        @SerializedName("id")
        private String id;
        @SerializedName("origin_id")
        private String originId;
        
        public String getId() {
            return id;
        }
        
        public void setId(String id) {
            this.id = id;
        }
        
        public String getOriginId() {
            return originId;
        }
        
        public void setOriginId(String originId) {
            this.originId = originId;
        }
    }
}